package com.boot.controller;

import com.baomidou.mybatisplus.extension.api.R;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @description:
 * @author: HuangX
 * @create: 2022/4/23
 */
@Slf4j
@Api(tags = "首页控制器")
@RestController
@AllArgsConstructor
public class LoginController {

    @PostMapping("/app1/login")
    public R login(HttpServletRequest request, String username, String password) {
        if ("admin".equals(username) && "123".equals(password)){

        }
//        Object sys = sysDeptService.getSys();
        return R.ok("123");
    }
}
